/* 全屏遮罩样式 */
.loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 22, 41, 0.9);
    backdrop-filter: blur(8px);
    z-index: 1050;
    /* 需要高于其他元素，但低于 modal */
    display: none;
    /* 默认隐藏 */
}

/* 加载动画样式 */
.loading-spinner {
    width: 100%;
    text-align: center;
    margin-top: 100%;
    /* 垂直居中 */
}

.text-left {
    text-align: left;
}

.form-check-input {
    margin-top: 0.2rem !important;
}

svg {
    margin-right: 0.3rem;
    border-radius: 50%;
    width: 1.3rem;
    height: 1.3rem;
    padding: 0.2rem;
    color: #fff;
}

.middle-title {
    height: 3.5rem;
    display: flex;
    align-items: center;
    padding-left: 3.6rem;
    width: 100%;
    z-index: 9999999999;
    background: rgba(15, 22, 41, 0.95);
    backdrop-filter: blur(15px);
    margin: 0;
    position: relative;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* 添加安全区域支持 */
    padding-top: env(safe-area-inset-top);
    min-height: calc(3.5rem + env(safe-area-inset-top));
}

.svg6 {
    width: 1.8rem;
    height: 1.8rem;
    color: #d4d4d4;
    position: absolute;
    left: 0.7rem;
    padding: 0;
}

.svg5 {
    width: 1.8rem;
    height: 1.8rem;
    color: #d4d4d4;
}

.svg1 {
    background: linear-gradient(135deg, #059669, #10b981);
    padding: 0.5rem 0.7rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.svg2 {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    padding: 0.4rem 0.6rem;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
}

.svg3 {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    padding: 0.4rem 0.6rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.svg4 {
    background: linear-gradient(135deg, #dc2626, #f87171);
    padding: 0.4rem 0.6rem;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.custom-file-label {
    overflow: hidden;
    white-space: nowrap;
}

button,
input,
textarea,
button.focus,
button:focus,
button.active:focus,
button:active:focus,
input.focus,
input:focus,
input.active:focus,
input:active:focus,
textarea.focus,
textarea:focus,
textarea.active:focus,
textarea:active:focus,
.btn.focus,
.btn:focus,
.btn.active:focus,
.btn:active:focus {
    outline: none;
    box-shadow: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
}

#scriptInput,
.custom-file-label,
#authInput,
.custom-file-input,
.custom-file-label::after {
    resize: none;
    background-color: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.custom-file-label::after {
    border: none !important;
}

#scriptInput:focus,
#authInput:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background-color: #1e293b;
}

.custom-file-input:lang(en) ~ .custom-file-label::after {
    height: 100%;
    color: #8e8e8e;
}

.custom-file-input:disabled ~ .custom-file-label {
    background-color: #1e293b;
    opacity: 0.6;
}

#scriptInput::placeholder,
.custom-file-label::placeholder,
#authInput::placeholder,
.custom-file-label {
    color: #858585;
}

/* 或者只应用于某个元素 */
* {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 隐藏滚动条的样式 */
::-webkit-scrollbar {
    display: none;
}

.card {
    background: rgba(30, 30, 46, 0.7);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card:active {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

#logger {
    font-size: 0.8rem !important;
    overflow: hidden;
    white-space: nowrap;
    overflow-x: scroll;
}

#logger,
#responseMessage,
#responseMessage * {
    color: #34d399 !important;
    text-shadow: 0 1px 3px rgba(52, 211, 153, 0.3);
}

input[type="checkbox"] {
    height: 1rem;
    width: 1rem;
}

body {
    background: linear-gradient(135deg, #0f1629 0%, #1a1f35 100%);
    background-attachment: fixed;
    color: #cbd5e1;
    height: 100%;
    overflow: hidden;
    /* 添加触摸优化 */
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    /* 添加字体优化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


input[type="checkbox"] {
    opacity: 0;
}

input[type="checkbox"] + label:before {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 1.2rem;
    height: 1.2rem;
    border-radius: 40%;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #334155;
    border: 2px solid rgba(148, 163, 184, 0.3);
}

input[type="checkbox"]:checked + label:before {
    background: linear-gradient(135deg, #10b981, #34d399);
    border-color: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
}

input,
textarea {
    color: #d3d7db !important;
}

.text-fff {
    color: #f1f5f9;
    font-weight: 600;
}

.text-fff:hover, a:visited, a:active {
    color: #f1f5f9;
    text-decoration: none;
}

.form-check-label {
    color: #b2b8bd;
    padding-left: 0.5rem;
}

.btn,
.btn:active,
.btn:focus {
    color: #ffffff !important;
    border: none;
    outline: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    letter-spacing: 0.025em;
}

.btn:active {
    transform: scale(0.95);
}

.btn:hover {
    color: #ffffff !important;
}

.card-title {
    color: #f1f5f9;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    font-weight: 600;
}

body::-webkit-scrollbar {
    display: none;
    /* 对于 Chrome, Safari 和 Opera 隐藏滚动条 */
}


#sidebar {
    width: 100%;
    position: fixed;
    z-index: 111111111;
    left: 0;
    top: 3.5rem;
    background: #0e162191;
    height: calc(100vh - 3.5rem);
    display: none;
}

.sidebar-sticky {
    position: sticky;
    top: 0;
    height: 100%;
    padding-top: .5rem;
    padding-bottom: 0.5rem;
    overflow: hidden;
    width: 75%;
    background: rgba(26, 30, 48, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148, 163, 184, 0.1);
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    color: #e2e8f0;
}

.nav-link {
    padding: 0.4rem 0.8rem;
    margin: 0.2rem 0.5rem;
    border-radius: 10px;
    color: #cbd5e1;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    overflow: visible;
    text-overflow: clip;
    display: block;
}

.nav-link:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    transform: translateX(8px);
}

.btn-secondary,
.btn-secondary:hover {
    background: linear-gradient(135deg, #3b82f6, #60a5fa);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 6px 25px rgba(59, 130, 246, 0.5);
}

.btn-warning,
.btn-warning:hover {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-warning:hover {
    box-shadow: 0 6px 25px rgba(245, 158, 11, 0.5);
}

.btn-danger,
.btn-danger:hover {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

.btn-danger:hover {
    box-shadow: 0 6px 25px rgba(220, 38, 38, 0.5);
}

.btn-info,
.btn-info:hover {
    background: linear-gradient(135deg, #0891b2, #06b6d4);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.3);
}

.btn-info:hover {
    box-shadow: 0 6px 25px rgba(8, 145, 178, 0.5);
}

.btn-success,
.btn-success:hover {
    background: linear-gradient(135deg, #059669, #10b981);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.btn-success:hover {
    box-shadow: 0 6px 25px rgba(5, 150, 105, 0.5);
}

.btn-audit,
.btn-audit:hover {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.3);
}

.btn-audit:hover {
    box-shadow: 0 6px 25px rgba(124, 58, 237, 0.5);
}

.btn.focus,
.btn:focus {
    box-shadow: none
}

.btn-danger.disabled,
.btn-danger:disabled {
    background: linear-gradient(135deg, #991b1b, #b91c1c);
    opacity: 0.6;
}

.btn-danger:not(:disabled):not(.disabled).active,
.btn-danger:not(:disabled):not(.disabled):active,
.show > .btn-danger.dropdown-toggle {
    background: linear-gradient(135deg, #b91c1c, #dc2626);
    box-shadow: 0 4px 20px rgba(185, 28, 28, 0.4);
}

.btn-warning.disabled,
.btn-warning:disabled {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    opacity: 0.6;
}

.btn-warning:not(:disabled):not(.disabled).active,
.btn-warning:not(:disabled):not(.disabled):active,
.show > .btn-warning.dropdown-toggle {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}

.btn-secondary.disabled,
.btn-secondary:disabled {
    background: linear-gradient(135deg, #1e40af, #2563eb);
    opacity: 0.6;
}

.btn-secondary:not(:disabled):not(.disabled).active,
.btn-secondary:not(:disabled):not(.disabled):active,
.show > .btn-secondary.dropdown-toggle {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
}

.btn-success.disabled,
.btn-success:disabled {
    background: linear-gradient(135deg, #047857, #059669);
    opacity: 0.6;
}

.btn-success:not(:disabled):not(.disabled).active,
.btn-success:not(:disabled):not(.disabled):active,
.show > .btn-success.dropdown-toggle {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 4px 20px rgba(5, 150, 105, 0.4);
}

.btn-warning:not(:disabled):not(.disabled).active:focus,
.btn-warning:not(:disabled):not(.disabled):active:focus,
.show > .btn-warning.dropdown-toggle:focus {
    box-shadow: none
}

.btn-secondary:not(:disabled):not(.disabled).active:focus,
.btn-secondary:not(:disabled):not(.disabled):active:focus,
.show > .btn-secondary.dropdown-toggle:focus {
    box-shadow: none
}

.btn-success:not(:disabled):not(.disabled).active:focus,
.btn-success:not(:disabled):not(.disabled):active:focus,
.show > .btn-success.dropdown-toggle:focus {
    box-shadow: none
}

.btn-audit.disabled,
.btn-audit:disabled {
    background: linear-gradient(135deg, #5b21b6, #7c3aed);
    opacity: 0.6;
}

.btn-audit:not(:disabled):not(.disabled).active,
.btn-audit:not(:disabled):not(.disabled):active,
.show > .btn-audit.dropdown-toggle {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}

.btn-audit:not(:disabled):not(.disabled).active:focus,
.btn-audit:not(:disabled):not(.disabled):active:focus,
.show > .btn-audit.dropdown-toggle:focus {
    box-shadow: none
}

.btn-danger:not(:disabled):not(.disabled).active:focus,
.btn-danger:not(:disabled):not(.disabled):active:focus,
.show > .btn-danger.dropdown-toggle:focus {
    box-shadow: none
}

.dropdown {
    right: 0.5rem;
    padding: 0.07rem;
    position: fixed;
}

.dropdown-menu {
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    right: auto;
    left: calc(100% - 260px);
    transform: none;
    min-width: 240px;
    max-width: 240px;
}

.dropdown-menu * {
    color: #e2e8f0;
}

.dropdown-item {
    padding: 0.8rem 1rem;
    border-radius: 0px;
    transition: all 0.2s ease;
}

.dropdown-item.active,
.dropdown-item:active {
    background: linear-gradient(135deg, #0284c7, #38bdf8);
    border-radius: 10px;
}

.dropdown-item:focus, .dropdown-item:hover {
    color: #ffffff;
    text-decoration: none;
    background-color: rgba(30, 30, 46, 0.95);
    transform: translateX(4px);
}

.card-body {
    padding: 1rem;
}

.container {
    height: calc(100vh - 4rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
    /* 添加弹性滚动 */
    -webkit-overflow-scrolling: touch;
    /* 添加底部安全区域 */
    padding-bottom: env(safe-area-inset-bottom);
}

.form-check {
    position: relative;
    padding-left: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.detail-panel {
    padding: 1% 5%;
    position: fixed;
    bottom: 0;
    height: 65%;
    width: 100%;
    background: rgba(26, 30, 48, 0.98);
    backdrop-filter: blur(15px);
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
}

.detail-header {
    height: 50px;
    width: 100%;
    background: linear-gradient(135deg, #1e293b, #334155);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.detail-content {
    width: 100%;
    height: calc(100% - 50px);
    overflow: scroll;
    text-align: left;
    white-space: nowrap;
}

.deploy-card {
    position: fixed;
    bottom: 1rem;
    left: 1%;
    width: 73%;
    height: 4rem;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.deploy-card .col {
    padding: 0 10px;
}

.deploy-card .card-body {
    padding: 0.5rem 0.7rem;
    display: flex;
    align-items: center;
    height: 100%;
}

.deploy-card .row {
    width: 100%;
    margin: 0;
}

.panel-card {
    position: fixed;
    bottom: 5rem;
    left: 1%;
    width: 73%;
    background: rgba(30, 30, 46, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    height: 8.125rem;
    margin-bottom: 0.5rem;
}

.panel-card .row {
    height: 50%;
    margin: 0;
}

.panel-card .col {
    box-sizing: border-box;
    padding: 0 8px;
}

.target {
    width: 100%;
    text-align: center;
    vertical-align: middle;
}

.target-header {
    height: 55%;
    padding: 0.5rem 0;
    font-weight: 600;
    color: #cbd5e1;
    font-size: 0.9rem;
}

.target-body {
    height: 45%;
    color: #f87171;
    font-weight: 600;
    text-shadow: 0 2px 6px rgba(248, 113, 113, 0.3);
}

.panel-card .card-body {
    padding: 0;
}

.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

.set-drop-down {
    display: flex;
    align-items: center;
    justify-content: center;
    border-top: 1px solid #343434;
}

input[name='setNode'] {
    background-color: #1e293b;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 8px;
    width: 136px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

input[name='setNode']:focus {
    background-color: #1e293b;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}
